'use strict';

function choose_multiples_of_three(collection) {

  //在这里写入代码
  var num = [];
  for (let i = 0; i < collection.length; i++) {
    if(collection[i]%3==0){
      num.push(collection[i])
    }
  }
  return num;
}

module.exports = choose_multiples_of_three;
